{% comment %}
#
# This layout uses bootstrap with united theme
#
{% endcomment %}

{% include git-wiki/defines/defines.html %}

<!doctype html>
<html>

<head>
    {% if site.inc_before_head %}
    {% include {{ site.inc_before_head }} %}
    {% endif %}

    {% include git-wiki/sections/head/meta.html %}
    {% include git-wiki/sections/head/scripts.html %}
    {% include git-wiki/sections/head/styles.html %}

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.1.3/united/bootstrap.min.css">

    {% if site.inc_after_head %}
    {% include {{ site.inc_after_head }} %}
    {% endif %}
</head>

<body>
    <div class="wrapper">
        {% include git-wiki/sections/header/header.html %}
        <div class="git-wiki-page">
            {% include git-wiki/sections/tools/tools.html %}

            {% if site.inc_before_toc %}
            {% include {{ site.inc_before_toc }} %}
            {% endif %}
            
            {% if page.tableofcontents %}
            {% include git-wiki/components/toc/toc-lib.html title="Contents:" minHeaders=1 html=content sanitize=true class="inline_toc" h_min=1 h_max=3 ordered=1 %}
            {% endif %}
            
            {% if site.inc_after_toc %}
            {% include {{ site.inc_after_toc }} %}
            {% endif %}            

            {% if site.inc_before_content %}
            {% include {{ site.inc_before_content }} %}
            {% endif %}

            <div id="git-wiki-content">
                {{ content }}
            </div>

            {% if site.inc_after_content %}
            {% include {{ site.inc_after_content }} %}
            {% endif %}
        </div>
        <div class="row">
            <div class="col">
                {% include git-wiki/sections/footer/footer.html %}
            </div>
        </div>
    </div>

    {% include git-wiki/sections/tail/tail.html %}
</body>

</html>
